﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

using Service = Kiiro.MSProjectPlugin.PluginHelpers.Service;
using System.Windows.Forms;

namespace Kiiro.MSProjectPlugin
{
    public static class PluginModel
    {
        internal static void IsUserValid(Service service, PluginHelpers.PromptForm prompt)
        {
            SharePointProvider.IsUserValid(service, prompt);
        }            

        internal static void DownloadMidoriToProject(MSProject.Project project, Service service)
        {
            SharePointProvider.DownloadMidoriToProject(project, service);
        }

        internal static void SyncProjectToMidori(MSProject.Project project, Service service)
        {
            SharePointProvider.SyncProjectToMidori(project, service);
        }

        internal static void IsDirty(Service service, out bool firstSync, out bool isDirty)
        {
            SharePointProvider.IsDirty(service, out firstSync, out isDirty);
        }     

        internal static bool VersionCheck(Service service, Version version)
        {
            return SharePointProvider.VersionCheck(service, version);
        }
    }
}

/*************************************************************************
 * 
 * $Log: /Internal Projects/Kiiro/Kiiro.MSProjectPlugin/PluginModel.cs $
 * 
 * 6     10/02/09 10:46a Stefanf
 * 
 * 5     8/31/09 3:36p Stefanf
 * 
 * 4     17/08/09 10:45a Camerons
 * Added check-in comments section
 * 
 ************************************************************************/